<template>
  <van-swipe>
    <van-swipe-item v-for="item of props.data.slides" :key="item.goodsId">
      <van-image :src="filterImg(item.image)" />
    </van-swipe-item>
  </van-swipe>
</template>
<script setup>
const props = defineProps({
  data: {
    type: Object,
  },
});
const filterImg = (str) => {
  return str.replace("http://oa.ossjk.cn/", "http://imgs.ossjk.cn/");
};
</script>
